{extend name="base" /}

{block name="body"}

<section class="content-header">
  <h1>
    物流列表
    <small>订单 管理</small>
  </h1>
  <ol class="breadcrumb">
    <li><a href="{:url('admin/index/index')}"><i class="fa fa-dashboard"></i> Home</a></li>
    <li class="active">物流列表</li>
  </ol>
</section>

<section class="content">
  <!-- 筛选框 -->
  <div class="box box-info">
    <div class="box-header with-border">
      <h3 class="box-title">筛选</h3>
    </div>

    <form class="form-horizontal" id="search-form">
      <div class="box-body">

        <div class="form-group">
          <label for="input3" class="col-sm-2 control-label">物流公司名</label>

          <div class="col-sm-9">
            <input type="text" name="shipping_name" value="{$shipping_name}" class="form-control" id="input3" placeholder="请输入物流公司名">
          </div>
        </div>

      </div>

      <div class="box-footer">
        <div class="row">
          <div class="col-md-1 col-md-offset-10">
            <button type="reset" class="btn btn-default btn-reset">重置</button>
          </div>
          <div class="">
            <button type="submit" class="btn btn-info">搜索</button>
          </div>
        </div>
      </div>

    </form>
  </div>


  <!-- 列表 -->
  <div class="row">
    <div class="col-xs-12">

      <div class="box">

        <div class="box-header">

          <a href="javascript:;" data-url="{:url('add')}" proc-url="{:url('addProc')}" title="添加物流" class="btn btn-success btn-social-icon add-btn"><i class="fa fa-plus-square"></i></a>


          <a href="javascript:location=location" title="刷新" class="btn btn-default btn-social-icon"><span class="glyphicon glyphicon-refresh" aria-hidden="true"></span></a>
          <b style="color:#444">&nbsp;&nbsp;&nbsp;物流总数：{$info->total()}</b>
        </div>

        <div class="box-body table-responsive no-padding">
          <table class="table table-hover">
            <tr>
              <th>ID</th>
              <th>物流名称</th>
              <th>物流Code</th>
              <th>描述</th>
              <th>操作</th>
            </tr>
            {volist name="info" id="v"}
            <tr>
              <td>{$v.id}</td>
              <td>{$v.shipping_name}</td>
              <td>{$v.shipping_code}</td>
              <td>{$v.remark}</td>
              <td>

                {if condition="show_auth('admin/AdminUser/edit')"}
                  <a href="javascript:;" title="编辑" data-id="{$v.id}" data-url="{:url('edit')}" proc-url="{:url('editProc')}" class="btn btn-xs btn-info btn-social-icon edit-btn"><i class="fa fa-pencil"></i></a>
                {/if}

                {if condition="show_auth('admin/AdminUser/delete')"}
                  <a href="javascript:;" title="删除" data-id="{$v.id}" data-url="{:url('delete')}" class="btn btn-xs btn-danger btn-social-icon delete-btn"><i class="fa fa-trash-o"></i></a>
                {/if}
              </td>
            </tr>
            {/volist}

          </table>
        </div>

        <div class="box-footer clearfix">
            {$info->render()}
        </div>
      </div>

    </div>
  </div>


</section>

{/block}

{block name="script"}
<script type="text/javascript" src="__AJS__/shipping/index.js"></script>
{/block}